<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
|	example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|	http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There area two reserved routes:
|
|	$route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|	$route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router what URI segments to use if those provided
| in the URL cannot be matched to a valid route.
|
*/

$route['default_controller'] = "home";
$route['404_override'] = 'error_404';
$route['login'] = 'auth/login';
$route['login/(:any)'] = 'auth/login';
$route['logout'] = 'auth/logout';
$route['inscription'] = "auth/inscription";
$route['forgot_password'] = "auth/forgot_password";
$route['set_newpwd'] = "auth/set_newpwd";
$route['account/address/(:num)'] = "account/edit_address";
$route['account/address/new_address'] = "account/new_address";
$route['menu/(:num)'] = 'menu';
$route['menu/(:num)/(:num)'] = 'menu/submenu';
$route['twiml/call'] ="twilio_demo/call";

$route['admin990'] = "admin990/dashboard";
$route['admin990/dashboard'] = 'admin990/dashboard';
$route['admin990/dashboard'] = 'admin990/orders/by_month';
$route['admin990/login'] = "admin990/auth/login";
$route['admin990/logout'] = "admin990/auth/logout";
$route['admin990/orders/(:num)'] = "admin990/orders/index";
$route['admin990/orders/detail/(:any)'] ="admin990/orders/order_details";
$route['admin990/orders/search'] = "admin990/orders/search";
$route['admin990/orders/search/(:num)'] = "admin990/orders/search";
$route['admin990/orders'] = "admin990/orders/by_month";
$route['admin990/members/(:num)'] = "admin990/members/index";
$route['admin990/catalogue/(:num)'] = 'admin990/catalogue';
$route['admin990/catalogue/(:num)/(:num)'] = 'admin990/catalogue/submenu';
$route['admin990/products/(:num)'] = 'admin990/products';

$route['tool'] = "tool/tools/by_month";
$route['tool/orders'] = "tool/tools/by_month";
$route['tool/orders/(:num)'] = "tool/tools/index";
$route['tool/orders/detail/(:any)'] ="tool/tools/order_details";
$route['tool/multi_exec'] = "tool/tools/multi_exec";
$route['tool/login'] = "tool/auth/login";
$route['tool/logout'] = "tool/auth/logout";


/* End of file routes.php */
/* Location: ./application/config/routes.php */